<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/plugins/webuploader/webuploader.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/layout/css/demo/webuploader-demo.css">
    <style>
        .radio-inline input[type=radio] {
            margin-top: 4px
        }
    </style>
</head>

<body style="color:#333;padding:3px;" class="x_sorll">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">非常规促销取消</h2>
</div>
<!-- 标题 -->
<div>
    <div action="" class="form-inline">
        <table class="tab-content table-bordered table" border="1">
            <tr>
                <td>
                    <!-- <button class="btn-info btn" type="button" style="margin-right: 15px">导出Excel完整版</button><button class="btn btn-info">导出Excel打印版</button> -->
                </td>
            </tr>
        </table>

        <table class="table row-margin-top table-bordered bud_hei">
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">主题</label></td>
                <td colspan="7" class="font-bold">{$data.title}</td>
            </tr>
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">编号</label></td>
                <td></td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">原申请编号</label></td>
                <td><a href="{:url('view',['id'=>$data.id])}">{$data.sn}</a></td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">修改后编号</label></td>
                <td>无</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">状态</label></td>
                <td>{$data.status_title}</td>
            </tr>
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请人</label></td>
                <td><a href="javascript:;">{$data.cusername}({$data.job})</a></td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请人部门</label></td>
                <td>{$data.sjrbm}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">申请时间</label></td>
                <td>{:date('Y-m-d',$data.ctime)}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商性质</label></td>
                <td>{if $data.direct==1}直营{else}经销{/if}</td>
            </tr>
            <tr>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">经销商名称</label></td>
                <td><span class="font-bold">{$data.jxs_title}
                    <a href="{:url('ti_apply2/jxsview',['id'=>$data.jxs_id])}"><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true"></span></a></span></td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">所属分区</label></td>
                <td>{$data.zoning}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">所属省份</label></td>
                <td>{$data.provice}</td>
                <td style="min-width: 120px;width: 120px"><label for="" class="form-label">所属城市</label></td>
                <td>{$data.city}</td>
            </tr>
        </table>
        <table class="table table-striped row-margin-top table-bordered text-center bud_hei" id="table1">
            <tr>
                <th class="font-bold text-center" style="font-size:16px" colspan="33">费用规划内容(金额单位：元)</th>
            </tr>
            <tr class="info">
                <th rowspan="2" class="text-center">状态</th>
                <th rowspan="2" class="text-center">审批人</th>
                <th rowspan="2" class="text-center">核查结果</th>
                <th rowspan="2" class="text-center">序号</th>
                <th rowspan="2" class="text-center">明细编号</th>
                <th rowspan="2" class="text-center">系统名称</th>
                <th rowspan="2" class="text-center">负责人</th>
                <th rowspan="2" class="text-center">网店名称</th>
                <th rowspan="2" class="text-center">系统网点数</th>
                <th rowspan="2" class="text-center">申请进店数</th>
                <th rowspan="2" class="text-center">网点详细地址</th>
                <th rowspan="2" class="text-center">网点类型</th>
                <th rowspan="2" class="text-center">产品系列</th>
                <th rowspan="2" class="text-center">进场月份</th>
                <th rowspan="2" class="text-center">预计核销时间</th>
                <th rowspan="2" class="text-center">单点销量(万元)</th>
                <th rowspan="2" class="text-center">已进场条码产品名称</th>
                <th class="text-center" colspan="8">本次申请进场产品</th>
                <th class="text-center" colspan="12">本次申请进场费用</th>
                <th rowspan="2" class="text-center">备注</th>
                <th rowspan="2" class="text-center">取消原因<span class="colorRed">*</span>
                    <button class="btn btn-info " type="button" id="cancelBtn">取消整单</button>
                </th>
            </tr>
            <tr class="info">
                <th class="text-center">本次申请进场产品</th>
                <th class="text-center">标准出产价</th>
                <th class="text-center">经销商原供货价</th>
                <th class="text-center">加价率</th>
                <th class="text-center">零售商供货率</th>
                <th class="text-center">加价率</th>
                <th class="text-center">公司建议零售价</th>
                <th class="text-center">加价率</th>
                <th class="text-center">费用类型</th>
                <th class="text-center">费用支付方式</th>
                <th class="text-center">未税费用金额(元)</th>
                <th class="text-center">是否增值税<br>(可抵扣)</th>
                <th class="text-center">税率</th>
                <th class="text-center">含税费用金额<br>(元)</th>
                <th class="text-center">实际投入费用<br>(元)</th>
                <th class="text-center">已核销费用(元)</th>
                <th class="text-center">费用计入部门</th>
                <th class="text-center">修改费用计入部门</th>
                <th class="text-center">费用计入方案</th>
                <th class="text-center">修改费用计入方案</th>
            </tr>
            <tbody>
            {volist name="data.list" id="group"}
            {volist name="group._child" id="row"}
            <tr data-id="{$row.id}">
                <td>{if $row.status==0}正常{/if}</td>
                <td>{if $row.eauser}{$row.eauser}{else}无{/if}</td>
                <td>{if $row.earesult}{$row.earesult}{else}无{/if}</td>
                <td>{$row.sn}</td>
                <td>
                    <a href="{:url('dataview',['id'=>$row.id])}">{$data.sn}-{$row.sn}</a>
                    <a href="{:url('decisionbasis',['id'=>''])}"><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span>
                    </a>
                </td>
                <td>{$row.system_title}</td>
                <td>{$row.head}</td>
                <td>
                    {$row.net_title}
                    <a href="{:url('netjcYj')}"><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a>
                </td>
                <td>{$row.system_net_num}</td>
                <td>待做</td>
                <td>{$row.net_addr}</td>
                <td>{$row.net_cat}</td>
                <td>{$row.product_series}
                    <a href="{:url('ROIjcyj')}"><span class="glyphicon glyphicon-zoom-in fangda" aria-hidden="true" style="display: inline-block;"></span></a></td>
                <td>{$row.year}-{$row.month}</td>
                <td>{:date('Y-m-d',$row.expCanTime)}</td>
                <td>{$row.net_ddxl}</td>
                <td>{$group.net_yjc}</td>
                <td>{$row.f1_title}<a href="{:url('ROIjcyj')}"><span class="glyphicon glyphicon-zoom-in fangda"
                                                                     aria-hidden="true"
                                                                     style="display: inline-block;"></span></a></td>
                <td>{$row.f2}元/{$row.unit}</td>
                <td>{$row.f3}元/{$row.unit}</td>
                <td>{$row.jiajialv1}%</td>
                <td>{$row.f4}元/{$row.unit}</td>
                <td>{$row.jiajialv2}%</td>
                <td>{$row.f5}元/{$row.unit}</td>
                <td>{$row.jiajialv3}%</td>
                <td>{$row.feetype}</td>
                <td>{$row.paymethod}</td>
                <td>{$row.amount}</td>
                <td>{$row.isVAT}</td>
                <td>{$row.shuilv}%</td>
                <td>{$row.hanshui}</td>
                <td>{$row.fb_shijitourufeiyong}</td>
                <td>待做</td>
                <td>{$row.jrbm}</td>
                <td>无</td>
                <td>{$row.project}</td>
                <td>无</td>
                <td>{$row.brief}</td>
                <td><input type="text" class="form-control" style="width: 130px;height: 26px" name="reason"></td>
            </tr>
            {/volist}
            <tr class="trTotal1 font-bold">
                <td colspan="11">小计</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td>{$group.xj_weishui}</td>
                <td></td>
                <td></td>
                <td>{$group.xj_hanshui}</td>
                <td>{$group.xj_shijitouru}</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td colspan="7"></td>
            </tr>
            {/volist}
            <tr class="trTotal1 font-bold">
                <td colspan="11">合计</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td>{$zj_weishui}</td>
                <td></td>
                <td></td>
                <td>{$zj_hanshui}</td>
                <td>{$zj_shijitouru}</td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td colspan="7"></td>
            </tr>
            </tbody>
        </table>
        <div class="contact-box">
            <p class="font-bold">
                本申请中包含{$wds}个网点，其中条码进场费：{$zj_shijitouru}元
            </p>
        </div>
        <div class="form-group white-bg" style="margin:20px 10px 20px 20px;">
            {if isset($attach)}
            <ul class="list-group">
                {volist name="attach" id="row"}
                <li class="list-group-item">
                    <a class="badge badge-primary removeIt" data-id="{$row.id}">移除</a>
                    <a href="{$row.path}" target="_blank">{$row.file_name}</a></li>
                {/volist}
            </ul>
            {/if}
            <div id="uploader" class="wu-example">
                <!--用来存放文件信息-->
                <div id="thelist" class="uploader-list"></div>
                <div class="btns">
                    <div id="picker">选择文件</div>
                    <button id="ctlBtn" class="btn btn-default">开始上传</button>
                </div>
                <input type="hidden" name="attach" id="attach">
                <input type="hidden" name="remove" id="remove">
            </div>
            <span>注：最多上传15个文件，每个文件小于50M,支持格式：</span><br>jpg,bnp,gif,png,jpeg,tif,raw,doc,docx,xls,xlsx,ppt,pptx,txt,pdf,rar,zip,mp4,avi,rmvb,rm,mid,3gp,AVI,3GP,,mpg,mp3,wma,wav
        </div>
        <div class="row text-center padding-10">
            <button class="btn btn-primary save" id="save1">保存为草稿</button>
            <button class="btn btn-warning save" id="save2">保存并提交工作流</button>
            <button class="btn btn-info" onclick="location.href='{:url("index")}';return false;">返回</button>
        </div>
    </div>
</div>
{include file="Public/footer"}

<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>
<script>
    var link1 = "{:url('index')}"
</script>
<script src="__STATIC__/layout/js/tijinchang/cancel.js"></script>

<!-- Web Uploader -->
<script type="text/javascript">
    // 添加全局站点信息
    var BASE_URL = '__STATIC__/layout/js/plugins/webuploader';
    var upload_url = '{:url("upload/fileupload")}';
</script>
<script src="__STATIC__/layout/js/plugins/webuploader/webuploader.min.js"></script>
<script src="__STATIC__/layout/js/upload.js"></script>
</body>

</html>
